package com.example.test.controller;

import com.example.test.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController()
@RequestMapping("user")
public class UserController {
    @RequestMapping("hello")
    public String hello(){
        return "a";
    }

    @RequestMapping("test")
    @ResponseBody
    public String hello(@RequestBody List<User> lists){
        return "a";
    }
}
